package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.TaskSeverity;

import java.util.List;

import vn.edu.ptithcm.pim.dao.TaskSeverityDao;

@SuppressWarnings({ "rawtypes" })
public class TaskSeverityService {
	private TaskSeverityDao taskSeverityDao;

	public TaskSeverityDao getTaskSeverityDao() {
		return taskSeverityDao;
	}

	public void setTaskSeverityDao(TaskSeverityDao taskSeverityDao) {
		this.taskSeverityDao = taskSeverityDao;
	}

	public void save(TaskSeverity taskSeverity) {
		taskSeverityDao.save(taskSeverity);
	}

	public void saveOrUpdate(TaskSeverity taskSeverity) {
		taskSeverityDao.saveOrUpdate(taskSeverity);
	}

	public void lock(TaskSeverity taskSeverity) {
		taskSeverityDao.lock(taskSeverity);
	}

	public void delete(TaskSeverity taskSeverity) {
		taskSeverityDao.delete(taskSeverity);
	}

	public TaskSeverity merge(TaskSeverity taskSeverity) {
		return taskSeverityDao.merge(taskSeverity);
	}

	public TaskSeverity findById(java.lang.Long id) {
		return taskSeverityDao.findById(id);
	}

	public List findByExample(TaskSeverity taskSeverity) {
		return taskSeverityDao.findByExample(taskSeverity);
	}

	public List getAll() {
		return taskSeverityDao.getAll();
	}

	public List<TaskSeverity> getSeveritiesToReport(Long projectId) {
		return taskSeverityDao.getSeveritiesToReport(projectId);
	}
}
